package com.tanhua.dubbo.api.mongo;

import com.tanhua.domain.mongo.VoiceRemainTime;

public interface VoiceRemainTimeApi {
    /**
     * 根据用户id查询数据
     * @param userId
     * @return VoiceRemainTime
     */
    VoiceRemainTime findVoice(Long userId);

    /**
     * 保存今日接收语音剩余次数
     * @param voiceRemainTime
     */
    void save(VoiceRemainTime voiceRemainTime);

    /**
     * 更新今日接收语音剩余次数
     * @param voiceRemainTime
     */
    void update(VoiceRemainTime voiceRemainTime);

    /**
     * 更新今日剩余接收语音次数
     * @param remainingTimes
     */
    void updateStatus(Integer remainingTimes);
}
